package com.itheima.jdk8date;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class Test {

    public static void main(String[] args) {

        String s = "2020-11-07 10:54:35";
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");

        LocalDateTime localDateTime = LocalDateTime.parse(s, formatter);
        LocalDateTime localDateTime1 = localDateTime.plusDays(1);
        System.out.println(localDateTime1);

    }
}
